package com.hdw.common.vo;

import com.hdw.common.util.DBUtil;

import java.io.Serializable;

public class DataExecParamVO implements Serializable {
    private String startDate;  //结束时间
    private String endDate;   //开始时间
    private String des;      //任务描述
    private String delSql;   //删除sql
    private String afterSql;   //后置SQL
    private String querySql; //查询sql
    private String tbTar; //目标表
    private String tbDesc;
    private String jobType; //任务类型
    private String idDbSou = DBUtil.DB_DW; // 来源库
    private String idDbTar = DBUtil.DB_DW; // 目标库
    private Long groupId; //組ID


    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getIdDbSou() {
        return idDbSou;
    }

    public void setIdDbSou(String idDbSou) {
        this.idDbSou = idDbSou;
    }

    public String getIdDbTar() {
        return idDbTar;
    }

    public void setIdDbTar(String idDbTar) {
        this.idDbTar = idDbTar;
    }

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public String getAfterSql() {
        return afterSql;
    }

    public void setAfterSql(String afterSql) {
        this.afterSql = afterSql;
    }

    public String getTbTar() {
        return tbTar;
    }

    public void setTbTar(String tbTar) {
        this.tbTar = tbTar;
    }

    public String getStartDate() {
        return startDate==null?null:startDate.replaceAll("-","");
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate==null?null:endDate.replaceAll("-","");
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public String getDelSql() {
        return delSql;
    }

    public void setDelSql(String delSql) {
        this.delSql = delSql;
    }

    public String getQuerySql() {
        return querySql;
    }

    public void setQuerySql(String querySql) {
        this.querySql = querySql;
    }


    private Integer exeType; //执行方式
    public Integer getExeType() {
        return exeType;
    }
    public void setExeType(Integer exeType) {
        this.exeType = exeType;
    }
}
